package exercise;

public class UnderlineBox extends Product {

    private char ulchar;

    public UnderlineBox(char ulchar) {
        this.ulchar = ulchar;
    }

    void use(String s) {
        System.out.println("\"" + s + "\"");
        for (int i = 0; i < s.length(); i++) {
            System.out.print(ulchar);
        }
        System.out.println();
    }
}
